Optimal. Leaf size=24 \[ \frac{b \sec (e+f x)}{f}-\frac{a \cos (e+f x)}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0202495, antiderivative size = 24, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {4133, 14} \[ \frac{b \sec (e+f x)}{f}-\frac{a \cos (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4133
Rule 14
Rubi steps
\begin{align*} \int \left (a+b \sec ^2(e+f x)\right ) \sin (e+f x) \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{b+a x^2}{x^2} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac{\operatorname{Subst}\left (\int \left (a+\frac{b}{x^2}\right ) \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac{a \cos (e+f x)}{f}+\frac{b \sec (e+f x)}{f}\\ \end{align*}
Mathematica [A] time = 0.0175184, size = 35, normalized size = 1.46 \[ \frac{a \sin (e) \sin (f x)}{f}-\frac{a \cos (e) \cos (f x)}{f}+\frac{b \sec (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.019, size = 25, normalized size = 1. \begin{align*}{\frac{1}{f} \left ( b\sec \left ( fx+e \right ) -{\frac{a}{\sec \left ( fx+e \right ) }} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.0071, size = 34, normalized size = 1.42 \begin{align*} -\frac{a \cos \left (f x + e\right ) - \frac{b}{\cos \left (f x + e\right )}}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.900601, size = 57, normalized size = 2.38 \begin{align*} -\frac{a \cos \left (f x + e\right )^{2} - b}{f \cos \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \sec ^{2}{\left (e + f x \right )}\right ) \sin{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.29776, size = 38, normalized size = 1.58 \begin{align*} -\frac{a \cos \left (f x + e\right )}{f} + \frac{b}{f \cos \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]